-- GENERATED SPELL FOR [Scarlet Smith] --


function spell0_1885(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1885', 2297, 1)
end

function spell1_1885(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1885', 522, 1)
end

function Sorts_1885(pUnit, Event)
local choix_sorts_1885 = math.random(0, 1)
if choix_sorts_1885 == 0 then
pUnit:RegisterEvent('spell0_1885', 1, 1)
end
if choix_sorts_1885 == 1 then
pUnit:RegisterEvent('spell1_1885', 1, 1)
end
end

function mob1885_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1885', math.random(1500, 3000), 1)
end

function mob1885_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1885_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1885_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1885, 1, 'mob1885_Action')
RegisterUnitEvent(1885, 2, 'mob1885_Leave')
RegisterUnitEvent(1885, 3, 'mob1885_Kill')
RegisterUnitEvent(1885, 4, 'mob1885_Die')
